import request from '@/utils/request'

// 产品分类列表
export function apiProductTypeLists(params: any) {
    return request.get({ url: '/product_type/lists', params })
}
export function apiProductTypeAll(params: any) {
    return request.get({ url: '/product_type/all', params })
}


// 添加产品分类
export function apiProductTypeAdd(params: any) {
    return request.post({ url: '/product_type/add', params })
}

// 编辑产品分类
export function apiProductTypeEdit(params: any) {
    return request.post({ url: '/product_type/edit', params })
}

// 删除产品分类
export function apiProductTypeDelete(params: any) {
    return request.post({ url: '/product_type/delete', params })
}

// 产品分类详情
export function apiProductTypeDetail(params: any) {
    return request.get({ url: '/product_type/detail', params })
}